/**
 * 
 */
package edu.arizona.bio5.onto.decomposition.persistent.rdf;

import org.openrdf.model.URI;
import org.openrdf.model.ValueFactory;
import org.openrdf.repository.RepositoryConnection;

/**
 * @author Pavel Klinov
 *
 */
public abstract class SesameAbstractPersister {

	private final RepositoryConnection mConnection;
	private URI mNamedGraph = null;
	
	SesameAbstractPersister(RepositoryConnection conn) {
		mConnection = conn;
	}
	
	void setNamedGraph(URI ng) {
		mNamedGraph = ng;
	}
	
	protected RepositoryConnection getConnection() {
		return mConnection;
	}
	
	protected URI getNamedGraph() {
		return mNamedGraph;
	}
	
	protected ValueFactory getValueFactory() {
		return mConnection.getValueFactory();
	}
}
